package Java道题;

import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;

/**
 * @author: yangwk
 * @date: 2023/7/28
 * @description:
 **/
public enum AccountTypeEnum {
    FIXED(), SAVING();
    int code;

    AccountTypeEnum() {
        System.out.println("hello");
    }

}

class one {
    static boolean k;
    private static final String message = "taobao";

    public static void main(String[] args) {
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
        System.out.println(AccountTypeEnum.FIXED);
        System.out.println(AccountTypeEnum.FIXED);
        String a = "tao" + "bao";
        String b = "tao";
        String c = "bao";
        String d = b + c;
        System.out.println(a == message);
        System.out.println(b + c == message);
        System.out.println(d == message);
    }
}

interface F {


   void getF() ;
}

class BB extends CC {
    BB() {
        System.out.println("BB");
    }

    {
        System.out.println("B-B");
    }

    public void getF() {
        System.out.println('中');
        System.out.println("B");
    }

    @Override
    void getCC() {
        super.getCC();
    }
}

class CC {

    public class AC {

    }

    CC() {
        System.out.println("CC");
    }

    {
        new ImpCom().f();
        System.out.println("C-C");
    }

    void getCC() {
        System.out.println("C");
    }
}

abstract class Com {
    int M = 200;

    abstract int f();
}

class ImpCom extends Com {

    @Override
    int f() {
        return 100;
    }
}
